//package cn.jbit.ams.sms;
//
//import org.apache.commons.httpclient.Header;
//import org.apache.commons.httpclient.HttpClient;
//import org.apache.commons.httpclient.NameValuePair;
//import org.apache.commons.httpclient.methods.PostMethod;
//public class Text {
//	public static void main(String[] args) throws Exception {
//		
//		HttpClient client = new HttpClient();
//		PostMethod post = new PostMethod("https://api.netease.im/sms/sendcode.action");
//		post.addRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8");// 在头文件中设置转码
//		NameValuePair[] data = {
//				new NameValuePair("Uid", "914031895@qq.com"), // 注册的用户名
//				new NameValuePair("Key", "c981d3486c0a4f098786dc41f37edb2d"), // 注册成功后,登录网站使用的密钥
//				new NameValuePair("smsMob", "13970687423"), // 手机号码
//				new NameValuePair("smsText", "您24小时都还未派单,赶紧去派单吧![KoKo公司]") };//设置短信内容
//		post.setRequestBody(data);
//		client.executeMethod(post);
//		Header[] headers = post.getResponseHeaders();
//		int statusCode = post.getStatusCode();
//		System.out.println("statusCode:" + statusCode);	//statusCode=200表示请示成功！
//		for (Header h : headers) {
//			System.out.println(h.toString());
//		}
//		String result = new String(post.getResponseBodyAsString().getBytes("utf-8"));  //设置编码格式
//		System.out.println(result);
//		post.releaseConnection();
//	}
//}